GetColumnDefs method

Returns a collection of the specified data columns from the data table shown on the Title Blocks page by the CAD link after reading a title block from a drawing layout.

Syntax

GetColumnDefs(CollectionType As Integer)

Parameters

Name

Description

CollectionType

One of the following numeric values:

1 – only the mandatory layout and block name columns
2 – only the columns mapped in the link configuration
3 – all columns

Return Value

A collection of column definition objects. Each object has the following properties:

  • Name – internal name of the column

  • DispName – display name of the column

  • PropType – one of the following property value types:

    0string
    1integer
    2date
    3real number
    4Boolean

  • Direction – one of the following property update directions as specified by the CAD link configuration

    0 – any direction
    1 – from Meridian to the document
    2 – from the document to Meridian

  • Hidden – indicates whether the column is hidden in the table

  • Order – column display order in the table

Remarks

Use this method to access the data in multiple title blocks defined in a single drawing. For an example of usage, see DocCADLink_AfterReadMTBProperties event.